import request from '../utils/request'

export const findInstitute = () => {
  return request({
    url: '/System/institute/findInstitute',
    method: 'get'
  })
}

export const findInstituteList = (current, size, instituteVo) => {
  return request({
    url: '/System/institute/findInstituteList',
    method: 'post',
    params: {
      current,
      size
    },
    data: instituteVo
  })
}

export const saveInstitute = (institute) => {
  return request({
    url: '/System/institute/addInstitute',
    method: 'post',
    data: institute
  })
}

export const deleteInstitute = (id) => {
  return request({
    url: '/System/institute/delete/' + id,
    method: 'delete',
    data: id
  })
}
